@extends('layouts.admin.application')

@section('content')
    <div class="main-content">
        <div class="col-xs-12">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="#">首页</a></li>
                    <li><a href="{{ route('cashier.apply.index') }}">供应商管理</a></li>
                    <li class="active">新增供应商</li>
                </ul>
            </div>

            @include('layouts.partials._flash')

            <form class="form-horizontal" role="form" action="{{ route('cashier.apply.store') }}" method="post"
                  style="margin-top: 10px;">

                {{csrf_field()}}

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">供应商名称：</label>

                    <div class="col-sm-9">
                        <input type="text" name="name" placeholder="供应商名称，你懂得~" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">联系方式(手机号码)：</label>

                    <div class="col-sm-9">
                        <input type="text" name="phone" class="col-xs-10 col-sm-5">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">供应商地址：</label>

                    <div class="col-sm-9">
                        <select id="selProvince" name="province">
                            <option value="0">--请选择省份--</option>
                        </select>
                        <select id="selCity" name="city">
                            <option value="0">--请选择城市--</option>
                        </select>
                        <select id="selDistrict" name="area">
                            <option value="0">--请选择区/县--</option>
                        </select>
                        <br>
                        <input type="text" name="detail" placeholder="请填写详细地址" style="width: 380px;margin-top: 5px;"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">排序：</label>

                    <div class="col-sm-9">
                        <input type="text" name="sort_order" class="col-xs-10 col-sm-5">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">备注：</label>

                    <div class="col-sm-9">
                        <textarea id="backup" name="description" cols="47" rows="7"></textarea>
                    </div>
                </div>

                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit"><i class="icon-ok bigger-110"></i>保存</button>
                        &nbsp; &nbsp; &nbsp;
                        <a class="btn" onclick="javascript:history.back(-1);return false;">
                            <i class="icon-undo bigger-110"></i>返回</a>
                    </div>
                </div>
            </form>
        </div>

    </div>
@endsection

@section('js')
    <script src="/vendor/pca/CityJson.js"></script>
    <script src="/vendor/pca/DistrictJson.js"></script>
    <script src="/vendor/pca/ProJson.js"></script>
    <script src="/vendor/pca/pca.js"></script>
@endsection